home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 555 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  51 lines

  1. Newsgroups: comp.sys.m68k
  2. Path: in1.uu.net!tron!usenet
  3. From: gibson.w.e@wec.com (White Gibson)
  4. Subject: Re: 332 Interrupt programming
  5. Sender: usenet@tron.bwi.wec.com (USEnet News Poster)
  6. Message-ID: <DprozK.1CD@tron.bwi.wec.com>
  7. Date: Fri, 12 Apr 1996 20:59:44 GMT
  8. X-Nntp-Posting-Host: mbsh28.bwi.wec.com
  9. References: <1996Apr5.074626.7525@schbbs.mot.com>
  10. Mime-Version: 1.0
  11. Organization: Westinghouse Electric Corp.
  12. X-Newsreader: WinVN 0.99.2
  13.  
  14. In article <1996Apr5.074626.7525@schbbs.mot.com>, TTZ398@waccvm.corp.mot.com 
  15. says...
  16. >
  17. >------------------------- Original Article -------------------------
  18. >wbortz@gpu.srv.ualberta.ca (Wade Bortz) wrote:
  19. >
  20. >>       I've been struggling with this for a month or so now - can anyone
  21. >>recomend some resources which would explain interrupt programming on the
  22. >>332 in C?  Motorola has not been of much help, neither has SDSI, whose C
  23. >>compiler I am using.
  24. >>       I want to run an interrupt function once every second.  I'm using
  25. >>the #pragma interrupt compiler directive for the function, and have set
  26. >>PICR and PITR, and loaded the address of my interrupt function into the
  27. >>proper vector in the exception table.  What am I missing here?  Any help
  28. >>would be greatly appreciated.
  29. >
  30. >You should get hold of the Motorola application note 'Using the
  31. >MC68332 Periodic Interrupt Timer', order code AN437/D. It covers
  32. >exactly what you want - you just have to change the Introl C special
  33. >directive for an exception handler to the pragma etc. required for
  34. >your compiler.
  35. >
  36. >Hope this helps,
  37. >Mark
  38. >
  39.  
  40. This is probably a stupid question, but did you change the processing level 
  41. so that you interrupts could be processed? The '332 boots to level 7 and 
  42. will only answer "non-maskable" interrupts at this level (IRQ7). If you set 
  43. your real-time interrupt at a lower interrupt level and did not change the 
  44. processing level it will not respond to these interrupts.
  45.  
  46. Hope this helps ...
  47.  
  48. White Gibson     | The opinions expressed in this article are those of the
  49. gibsonwe@wec.com | author, for what that's worth.
  50.  
  51.